﻿#region Header

// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
//     <version>$Revision: 2533 $</version>
// </file>

#endregion Header

namespace ICSharpCode.TextEditor.Document
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    /// Indicates that the highlighting definition that was tried to load was invalid.
    /// You get this exception only once per highlighting definition, after that the definition
    /// is replaced with the default highlighter.
    /// </summary>
    [Serializable]
    public class HighlightingDefinitionInvalidException : Exception
    {
        #region Constructors

        public HighlightingDefinitionInvalidException()
            : base()
        {
        }

        public HighlightingDefinitionInvalidException(string message)
            : base(message)
        {
        }

        public HighlightingDefinitionInvalidException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        protected HighlightingDefinitionInvalidException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        #endregion Constructors
    }
}